import { axios } from "@/services/axios";

const Templates = {
  get: data => axios.get(`api/templates/${data.id}`),
  getlist: params => axios.post(`api/templates/list`, params),
  gettypelist: params => axios.post(`api/templates/type/list`, params),
  create: data => axios.post("api/templates", data),
  getid: data => axios.get("api/templates", data),
  save: data => axios.post(`api/templates/${data.id}`, data),
  delete: data => axios.post(`api/templates/delete/${data.id}`),
};

export default Templates;


